package com.zystudio.func.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.zystudio.func.R;
import com.zystudio.func.interf.SingleClickListener;

public class LauncherActivity extends Activity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_zy_func_launcher);
        //接口测试
        findViewById(R.id.btn_1).setOnClickListener(new SingleClickListener() {
            @Override
            public void onSingleClick(View v) {
                launchActivity(ApiActivity.class);
            }
        });
        //协议测试
        findViewById(R.id.btn_2).setOnClickListener(new SingleClickListener() {
            @Override
            public void onSingleClick(View v) {
                launchActivity(PolicyActivity.class);
            }
        });
    }

    private void launchActivity(Class<?> clazz){

        Intent intent = new Intent(this,clazz);
        startActivity(intent);

    }

}
